On the Cost of Transitive Closures in Relational Databases

نویسندگان

  • Zhe Li
  • Kenneth A. Ross
چکیده

We consider the question of taking transitive closures on top of pure relational systems (Sybase and Ingres in this case). We developed three kinds of transitive closure programs , one using a stored procedure to simulate a built-in transitive closure operator, one using the C language embedded with SQL statements to simulate the iterated execution of the transitive closure operation, and one using Floyd's matrix algorithm to compute the transitive closure of an input graph. By comparing and analyzing the respective performances of their diierent versions in terms of elapsed time spent on taking the transitive closure, we identify some of the bottlenecks that arise when deening the transitive closure operator on top of existing relational systems. The main purpose of the work is to estimate the costs of taking transitive closures on top of relational systems, isolate the diierent cost factors (such as logging, network transmission cost, etc.), and identify some necessary enhancements to existing relational systems in order to support transitive closure operation eeciently. We argue that relational databases should be augmented with eecient transitive closure operators if such queries are made frequently. Abstract We consider the question of taking transitive closures on top of pure relational systems (Sybase and Ingres in this case). We developed three kinds of transitive closure programs , one using a stored procedure to simulate a built-in transitive closure operator, one using the C language embedded with SQL statements to simulate the iterated execution of the transitive closure operation, and one using Floyd's matrix algorithm to compute the transitive closure of an input graph. By comparing and analyzing the respective performances of their diierent versions in terms of elapsed time spent on taking the transitive closure, we identify some of the bottlenecks that arise when deening the transitive closure operator on top of existing relational systems. The main purpose of the work is to estimate the costs of taking transitive closures on top of relational systems, isolate the diierent cost factors (such as logging, network transmission cost, etc.), and identify some necessary enhancements to existing relational systems in order to support transitive closure operation eeciently. We argue that relational databases should be augmented with eecient transitive closure operators if such queries are made frequently.

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Linearization and Completeness Results for Terminating Transitive Closure Queries on Spatial Databases

We study queries to spatial databases, where spatial data are modelled as semialgebraic sets, using the relational calculus with polynomial inequalities as a basic query language. We work with the extension of the relational calculus with terminating transitive closures. The main result is that this language can express the linearization of semi-algebraic databases. We also show that the sublan...

متن کامل

A New Algorithm for Transitive Closures and Computation of Recursion in relational Databases

In this paper, we propose a new algorithm for computing recursive closures. The main idea behind this algorithm is tree labeling and graph decomposition, based on which the transitive closure of a directed graph can be computed in O(e⋅dmax⋅dout) time and in O(n⋅dmax⋅dout) space, where n is the number of the nodes of the graph, e is the numbers of the edges, dmax is the maximal indegree of the n...

متن کامل

A Space-Economic Representation of Transitive Closures in Relational Databases

A composite object represented as a directed graph (digraph for short) is an important data structure that requires efficient support in CAD/CAM, CASE, office systems, software management, web databases, and document databases. It is cumbersome to handle such objects in relational database systems when they involve ancestor-descendant relationships (or say, recursive relationships). In this pap...

متن کامل

General Transitive Closures and Aggregate Functions

General transitive closures are a convenient operation for process ing recursive structures with relational languages because they are easy to understand e ciently to implement and expressive enough to support a broad range of practical applications To further extend the expressiveness of general transitive closures we study the use of aggregate functions together with general transitive closur...

متن کامل

New Query Rewriting Methods for Structured and Semi-Structured Databases

The following thesis presents novel optimization methods for structured and semi-structured databases. Developed methods are based on query rewriting and focus on reduction of various resources consumption during query execution. The first method achieves this goal by rewriting the initial query execution plan into a new plan based on the reduce function. The second method utilizes distributivi...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 1993